﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_GetRealNameByUsername]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_GetRealNameByUsername];
GO
CREATE PROCEDURE [dbo].[sproc_GetRealNameByUsername]
@Username nvarchar(100)
AS
    SELECT Realname FROM UDS_STAFF WHERE Staff_Name=@Username